package com.jd.genie.agent.dto.tool;

/**
 * 工具选择类型枚举
 */
public enum ToolChoice {

    NONE("none"),
    AUTO("auto"),
    REQUIRED("required");

    private final String value;

    ToolChoice(String value)
    {
        this.value = value;
    }

    public String getValue()
    {
        return value;
    }

    /**
     * 检查工具选择值是否有效
     */
    public static boolean isValid(ToolChoice toolChoice)
    {
        return toolChoice == NONE || toolChoice == AUTO || toolChoice == REQUIRED;
    }

}